package com.service;

import java.util.List;
import org.springframework.stereotype.Service;
import com.entity.Company;

@Service("companyService")
public interface CompanyService {
	// 插入数据 调用companyDAO里的insertCompany配置
	public int insertCompany(Company company);

	// 更新数据 调用companyDAO里的updateCompany配置
	public int updateCompany(Company company);

	// 删除数据 调用companyDAO里的deleteCompany配置
	public int deleteCompany(String companyid);

	// 查询全部数据 调用companyDAO里的getAllCompany配置
	public List<Company> getAllCompany();

	// 按照Company类里面的字段名称精确查询 调用companyDAO里的getCompanyByCond配置
	public List<Company> getCompanyByCond(Company company);

	// 按照Company类里面的字段名称模糊查询 调用companyDAO里的getCompanyByLike配置
	public List<Company> getCompanyByLike(Company company);

	// 按主键查询表返回单一的Company实例 调用companyDAO里的getCompanyById配置
	public Company getCompanyById(String companyid);

}
